using com.byt.suce.db.dao;
using System;
using System.Data;
using System.Data.Common;
using com.byt.webcore;
using System.Collections.Generic;
using MYLSOFT.JsonSimple;
using System.Data.SqlClient;

namespace com.byt.suce.db.mapper {

    public class PkgVuce : AbstractDataAccessObject , IPkgVuce {

        public PkgVuce() {
        }

        public PkgVuce.GetlistnotifParam getlistnotif(Connection conn, Dictionary<string, string> map) {
            PkgVuce.GetlistnotifParam param = newGetlistnotifParam(map);
            getlistnotif(conn, param);
            return param;
        }

        public PkgVuce.GetlistnotifParam getlistnotif(Connection conn, JSONObject json) {
            PkgVuce.GetlistnotifParam param = newGetlistnotifParam(json);
            getlistnotif(conn, param);
            return param;
        }

        public PkgVuce.GetlistnotifParam getlistnotif(Connection conn) {
            PkgVuce.GetlistnotifParam param = newGetlistnotifParam();
            getlistnotif(conn, param);
            return param;
        }

        public void getlistnotif(Connection conn, PkgVuce.GetlistnotifParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_getlistnotif";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // numeorden
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@numeorden";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Numeorden))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numeorden;
            // numesuce
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@numesuce";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Numesuce))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numesuce;
            // numeexpediente
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@numeexpediente";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Numeexpediente))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numeexpediente;
            // estado
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@estado";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 40;
            if (string.IsNullOrEmpty(param.Estado))
                par.Value = DBNull.Value;
            else
                par.Value = param.Estado;
            // evaluador
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@evaluador";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 40;
            if (string.IsNullOrEmpty(param.Evaluador))
                par.Value = DBNull.Value;
            else
                par.Value = param.Evaluador;
            // fechaini
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fechaini";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.DateTime;
            if (param.Fechaini == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Fechaini;
            // fechafin
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fechafin";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.DateTime;
            if (param.Fechafin == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Fechafin;
            // page
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@page";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Page == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Page;
            // limit
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@limit";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Limit == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Limit;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // totalrows
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@totalrows";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Int32;
            if (param.Totalrows == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Totalrows;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
            if(DBNull.Value.Equals(cmd.Parameters["@totalrows"].Value))
                param.Totalrows = null;
            else
                param.Totalrows = (int?)cmd.Parameters["@totalrows"].Value;
        }

        public PkgVuce.N11Param n11(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N11Param param = newN11Param(map);
            n11(conn, param);
            return param;
        }

        public PkgVuce.N11Param n11(Connection conn, JSONObject json) {
            PkgVuce.N11Param param = newN11Param(json);
            n11(conn, param);
            return param;
        }

        public PkgVuce.N11Param n11(Connection conn) {
            PkgVuce.N11Param param = newN11Param();
            n11(conn, param);
            return param;
        }

        public void n11(Connection conn, PkgVuce.N11Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N11";
            DbParameter par = null;
            // idsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsubsanacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsubsanacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsubsanacion;
            // descsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@descsubsanacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 2000;
            if (string.IsNullOrEmpty(param.Descsubsanacion))
                par.Value = DBNull.Value;
            else
                par.Value = param.Descsubsanacion;
            // idnotificacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idnotificacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idnotificacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idnotificacion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N11CrearParam n11Crear(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N11CrearParam param = newN11CrearParam(map);
            n11Crear(conn, param);
            return param;
        }

        public PkgVuce.N11CrearParam n11Crear(Connection conn, JSONObject json) {
            PkgVuce.N11CrearParam param = newN11CrearParam(json);
            n11Crear(conn, param);
            return param;
        }

        public PkgVuce.N11CrearParam n11Crear(Connection conn) {
            PkgVuce.N11CrearParam param = newN11CrearParam();
            n11Crear(conn, param);
            return param;
        }

        public void n11Crear(Connection conn, PkgVuce.N11CrearParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N11_CREAR";
            DbParameter par = null;
            // idsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsubsanacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsubsanacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsubsanacion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N15Param n15(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N15Param param = newN15Param(map);
            n15(conn, param);
            return param;
        }

        public PkgVuce.N15Param n15(Connection conn, JSONObject json) {
            PkgVuce.N15Param param = newN15Param(json);
            n15(conn, param);
            return param;
        }

        public PkgVuce.N15Param n15(Connection conn) {
            PkgVuce.N15Param param = newN15Param();
            n15(conn, param);
            return param;
        }

        public void n15(Connection conn, PkgVuce.N15Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N15";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // texto
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@texto";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 1000;
            if (string.IsNullOrEmpty(param.Texto))
                par.Value = DBNull.Value;
            else
                par.Value = param.Texto;
            // errores
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@errores";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Errores))
                par.Value = DBNull.Value;
            else
                par.Value = param.Errores;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N17Param n17(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N17Param param = newN17Param(map);
            n17(conn, param);
            return param;
        }

        public PkgVuce.N17Param n17(Connection conn, JSONObject json) {
            PkgVuce.N17Param param = newN17Param(json);
            n17(conn, param);
            return param;
        }

        public PkgVuce.N17Param n17(Connection conn) {
            PkgVuce.N17Param param = newN17Param();
            n17(conn, param);
            return param;
        }

        public void n17(Connection conn, PkgVuce.N17Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N17";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // idsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsubsanacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsubsanacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsubsanacion;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;
            // plazo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@plazo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Plazo == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Plazo;
            // texto
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@texto";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 1000;
            if (string.IsNullOrEmpty(param.Texto))
                par.Value = DBNull.Value;
            else
                par.Value = param.Texto;
            // errores
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@errores";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Errores))
                par.Value = DBNull.Value;
            else
                par.Value = param.Errores;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N17GetParam n17Get(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N17GetParam param = newN17GetParam(map);
            n17Get(conn, param);
            return param;
        }

        public PkgVuce.N17GetParam n17Get(Connection conn, JSONObject json) {
            PkgVuce.N17GetParam param = newN17GetParam(json);
            n17Get(conn, param);
            return param;
        }

        public PkgVuce.N17GetParam n17Get(Connection conn) {
            PkgVuce.N17GetParam param = newN17GetParam();
            n17Get(conn, param);
            return param;
        }

        public void n17Get(Connection conn, PkgVuce.N17GetParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N17_GET";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // idsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsubsanacion";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Int32;
            if (param.Idsubsanacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsubsanacion;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@idsubsanacion"].Value))
                param.Idsubsanacion = null;
            else
                param.Idsubsanacion = (int?)cmd.Parameters["@idsubsanacion"].Value;
        }

        public PkgVuce.N17N66Param n17N66(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N17N66Param param = newN17N66Param(map);
            n17N66(conn, param);
            return param;
        }

        public PkgVuce.N17N66Param n17N66(Connection conn, JSONObject json) {
            PkgVuce.N17N66Param param = newN17N66Param(json);
            n17N66(conn, param);
            return param;
        }

        public PkgVuce.N17N66Param n17N66(Connection conn) {
            PkgVuce.N17N66Param param = newN17N66Param();
            n17N66(conn, param);
            return param;
        }

        public void n17N66(Connection conn, PkgVuce.N17N66Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N17_N66";
            DbParameter par = null;
            // idsubsanacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsubsanacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsubsanacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsubsanacion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N19Param n19(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N19Param param = newN19Param(map);
            n19(conn, param);
            return param;
        }

        public PkgVuce.N19Param n19(Connection conn, JSONObject json) {
            PkgVuce.N19Param param = newN19Param(json);
            n19(conn, param);
            return param;
        }

        public PkgVuce.N19Param n19(Connection conn) {
            PkgVuce.N19Param param = newN19Param();
            n19(conn, param);
            return param;
        }

        public void n19(Connection conn, PkgVuce.N19Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N19";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // texto
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@texto";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 1000;
            if (string.IsNullOrEmpty(param.Texto))
                par.Value = DBNull.Value;
            else
                par.Value = param.Texto;
            // errores
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@errores";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Errores))
                par.Value = DBNull.Value;
            else
                par.Value = param.Errores;

            // docnumero
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@docnumero";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 15;
            if (string.IsNullOrEmpty(param.Numorden))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numorden;

            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N2Param n2(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N2Param param = newN2Param(map);
            n2(conn, param);
            return param;
        }

        public PkgVuce.N2Param n2(Connection conn, JSONObject json) {
            PkgVuce.N2Param param = newN2Param(json);
            n2(conn, param);
            return param;
        }

        public PkgVuce.N2Param n2(Connection conn) {
            PkgVuce.N2Param param = newN2Param();
            n2(conn, param);
            return param;
        }

        public void n2(Connection conn, PkgVuce.N2Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N2";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N2TarifaParam n2Tarifa(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N2TarifaParam param = newN2TarifaParam(map);
            n2Tarifa(conn, param);
            return param;
        }

        public PkgVuce.N2TarifaParam n2Tarifa(Connection conn, JSONObject json) {
            PkgVuce.N2TarifaParam param = newN2TarifaParam(json);
            n2Tarifa(conn, param);
            return param;
        }

        public PkgVuce.N2TarifaParam n2Tarifa(Connection conn) {
            PkgVuce.N2TarifaParam param = newN2TarifaParam();
            n2Tarifa(conn, param);
            return param;
        }

        public void n2Tarifa(Connection conn, PkgVuce.N2TarifaParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N2_TARIFA";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@tasa"].Value))
                param.Tasa = null;
            else
                param.Tasa = (decimal?)cmd.Parameters["@tasa"].Value;
        }

        public PkgVuce.N21Param n21(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N21Param param = newN21Param(map);
            n21(conn, param);
            return param;
        }

        public PkgVuce.N21Param n21(Connection conn, JSONObject json) {
            PkgVuce.N21Param param = newN21Param(json);
            n21(conn, param);
            return param;
        }

        public PkgVuce.N21Param n21(Connection conn) {
            PkgVuce.N21Param param = newN21Param();
            n21(conn, param);
            return param;
        }

        public void n21(Connection conn, PkgVuce.N21Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N21";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // dias
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@dias";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Dias == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Dias;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N22Param n22(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N22Param param = newN22Param(map);
            n22(conn, param);
            return param;
        }

        public PkgVuce.N22Param n22(Connection conn, JSONObject json) {
            PkgVuce.N22Param param = newN22Param(json);
            n22(conn, param);
            return param;
        }

        public PkgVuce.N22Param n22(Connection conn) {
            PkgVuce.N22Param param = newN22Param();
            n22(conn, param);
            return param;
        }

        public void n22(Connection conn, PkgVuce.N22Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N22";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;

            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@docnumero";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 15;
            if (param.Docnumero == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Docnumero;

            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N36Param n36(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N36Param param = newN36Param(map);
            n36(conn, param);
            return param;
        }

        public PkgVuce.N36Param n36(Connection conn, JSONObject json) {
            PkgVuce.N36Param param = newN36Param(json);
            n36(conn, param);
            return param;
        }

        public PkgVuce.N36Param n36(Connection conn) {
            PkgVuce.N36Param param = newN36Param();
            n36(conn, param);
            return param;
        }

        public void n36(Connection conn, PkgVuce.N36Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N36";
            DbParameter par = null;
            // idtraza
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idtraza";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Int32;
            if (param.Idtraza == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idtraza;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // area
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@area";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 50;
            if (string.IsNullOrEmpty(param.Area))
                par.Value = DBNull.Value;
            else
                par.Value = param.Area;
            // subarea
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@subarea";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 50;
            if (string.IsNullOrEmpty(param.Subarea))
                par.Value = DBNull.Value;
            else
                par.Value = param.Subarea;
            // responsable
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@responsable";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 150;
            if (string.IsNullOrEmpty(param.Responsable))
                par.Value = DBNull.Value;
            else
                par.Value = param.Responsable;
            // fechaingreso
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fechaingreso";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.DateTime;
            if (param.Fechaingreso == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Fechaingreso;
            // fechasalida
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fechasalida";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.DateTime;
            if (param.Fechasalida == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Fechasalida;
            // mensaje
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@mensaje";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Mensaje))
                par.Value = DBNull.Value;
            else
                par.Value = param.Mensaje;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@idtraza"].Value))
                param.Idtraza = null;
            else
                param.Idtraza = (int?)cmd.Parameters["@idtraza"].Value;
        }

        public PkgVuce.N39Param n39(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N39Param param = newN39Param(map);
            n39(conn, param);
            return param;
        }

        public PkgVuce.N39Param n39(Connection conn, JSONObject json) {
            PkgVuce.N39Param param = newN39Param(json);
            n39(conn, param);
            return param;
        }

        public PkgVuce.N39Param n39(Connection conn) {
            PkgVuce.N39Param param = newN39Param();
            n39(conn, param);
            return param;
        }

        public void n39(Connection conn, PkgVuce.N39Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N39";
            DbParameter par = null;
            // iddr
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iddr";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iddr == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iddr;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N48Param n48(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N48Param param = newN48Param(map);
            n48(conn, param);
            return param;
        }

        public PkgVuce.N48Param n48(Connection conn, JSONObject json) {
            PkgVuce.N48Param param = newN48Param(json);
            n48(conn, param);
            return param;
        }

        public PkgVuce.N48Param n48(Connection conn) {
            PkgVuce.N48Param param = newN48Param();
            n48(conn, param);
            return param;
        }

        public void n48(Connection conn, PkgVuce.N48Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N48";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N49Param n49(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N49Param param = newN49Param(map);
            n49(conn, param);
            return param;
        }

        public PkgVuce.N49Param n49(Connection conn, JSONObject json) {
            PkgVuce.N49Param param = newN49Param(json);
            n49(conn, param);
            return param;
        }

        public PkgVuce.N49Param n49(Connection conn) {
            PkgVuce.N49Param param = newN49Param();
            n49(conn, param);
            return param;
        }

        public void n49(Connection conn, PkgVuce.N49Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N49";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N57Param n57(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N57Param param = newN57Param(map);
            n57(conn, param);
            return param;
        }

        public PkgVuce.N57Param n57(Connection conn, JSONObject json) {
            PkgVuce.N57Param param = newN57Param(json);
            n57(conn, param);
            return param;
        }

        public PkgVuce.N57Param n57(Connection conn) {
            PkgVuce.N57Param param = newN57Param();
            n57(conn, param);
            return param;
        }

        public void n57(Connection conn, PkgVuce.N57Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N57";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idflujo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idflujo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idflujo == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idflujo;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // iduserevaluador
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduserevaluador";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduserevaluador == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduserevaluador;
            // generarn57
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@generarn57";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 2;
            if (string.IsNullOrEmpty(param.Generarn57))
                par.Value = DBNull.Value;
                //par.Value = "si";
            else
                par.Value = param.Generarn57;
            // docnumero
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@docnumero";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Docnumero))
                par.Value = DBNull.Value;
            else
                par.Value = param.Docnumero;
            // numexpediente
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@numexpediente";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Numexpediente))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numexpediente;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@docnumero"].Value))
                param.Docnumero = null;
            else
                param.Docnumero = (string)cmd.Parameters["@docnumero"].Value;
            if(DBNull.Value.Equals(cmd.Parameters["@numexpediente"].Value))
                param.Numexpediente = null;
            else
                param.Numexpediente = (string)cmd.Parameters["@numexpediente"].Value;
        }

        public PkgVuce.N57N7Param n57N7(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N57N7Param param = newN57N7Param(map);
            n57N7(conn, param);
            return param;
        }

        public PkgVuce.N57N7Param n57N7(Connection conn, JSONObject json) {
            PkgVuce.N57N7Param param = newN57N7Param(json);
            n57N7(conn, param);
            return param;
        }

        public PkgVuce.N57N7Param n57N7(Connection conn) {
            PkgVuce.N57N7Param param = newN57N7Param();
            n57N7(conn, param);
            return param;
        }

        public void n57N7(Connection conn, PkgVuce.N57N7Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N57_N7";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idflujo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idflujo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idflujo == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idflujo;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // iduserevaluador
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduserevaluador";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduserevaluador == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduserevaluador;
            // docnumero
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@docnumero";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Docnumero))
                par.Value = DBNull.Value;
            else
                par.Value = param.Docnumero;
            // numexpediente
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@numexpediente";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Numexpediente))
                par.Value = DBNull.Value;
            else
                par.Value = param.Numexpediente;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@docnumero"].Value))
                param.Docnumero = null;
            else
                param.Docnumero = (string)cmd.Parameters["@docnumero"].Value;
            if(DBNull.Value.Equals(cmd.Parameters["@numexpediente"].Value))
                param.Numexpediente = null;
            else
                param.Numexpediente = (string)cmd.Parameters["@numexpediente"].Value;
        }

        public PkgVuce.N66Param n66(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N66Param param = newN66Param(map);
            n66(conn, param);
            return param;
        }

        public PkgVuce.N66Param n66(Connection conn, JSONObject json) {
            PkgVuce.N66Param param = newN66Param(json);
            n66(conn, param);
            return param;
        }

        public PkgVuce.N66Param n66(Connection conn) {
            PkgVuce.N66Param param = newN66Param();
            n66(conn, param);
            return param;
        }

        public void n66(Connection conn, PkgVuce.N66Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N66";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // tasa
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@tasa";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Decimal;
            if (param.Tasa == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Tasa;
            // motivo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@motivo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 1000;
            if (string.IsNullOrEmpty(param.Motivo))
                par.Value = DBNull.Value;
            else
                par.Value = param.Motivo;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N7DevolverParam n7Devolver(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N7DevolverParam param = newN7DevolverParam(map);
            n7Devolver(conn, param);
            return param;
        }

        public PkgVuce.N7DevolverParam n7Devolver(Connection conn, JSONObject json) {
            PkgVuce.N7DevolverParam param = newN7DevolverParam(json);
            n7Devolver(conn, param);
            return param;
        }

        public PkgVuce.N7DevolverParam n7Devolver(Connection conn) {
            PkgVuce.N7DevolverParam param = newN7DevolverParam();
            n7Devolver(conn, param);
            return param;
        }

        public void n7Devolver(Connection conn, PkgVuce.N7DevolverParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N7_DEVOLVER";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idflujo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idflujo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idflujo == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idflujo;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // idactividad
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idactividad";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Idactividad))
                par.Value = DBNull.Value;
            else
                par.Value = param.Idactividad;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N7ElabDrParam n7ElabDr(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N7ElabDrParam param = newN7ElabDrParam(map);
            n7ElabDr(conn, param);
            return param;
        }

        public PkgVuce.N7ElabDrParam n7ElabDr(Connection conn, JSONObject json) {
            PkgVuce.N7ElabDrParam param = newN7ElabDrParam(json);
            n7ElabDr(conn, param);
            return param;
        }

        public PkgVuce.N7ElabDrParam n7ElabDr(Connection conn) {
            PkgVuce.N7ElabDrParam param = newN7ElabDrParam();
            n7ElabDr(conn, param);
            return param;
        }

        public void n7ElabDr(Connection conn, PkgVuce.N7ElabDrParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N7_ELAB_DR";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idflujo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idflujo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idflujo == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idflujo;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // iduserevaluador
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduserevaluador";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduserevaluador == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduserevaluador;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N8Param n8(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N8Param param = newN8Param(map);
            n8(conn, param);
            return param;
        }

        public PkgVuce.N8Param n8(Connection conn, JSONObject json) {
            PkgVuce.N8Param param = newN8Param(json);
            n8(conn, param);
            return param;
        }

        public PkgVuce.N8Param n8(Connection conn) {
            PkgVuce.N8Param param = newN8Param();
            n8(conn, param);
            return param;
        }

        public void n8(Connection conn, PkgVuce.N8Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N8";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.N9Param n9(Connection conn, Dictionary<string, string> map) {
            PkgVuce.N9Param param = newN9Param(map);
            n9(conn, param);
            return param;
        }

        public PkgVuce.N9Param n9(Connection conn, JSONObject json) {
            PkgVuce.N9Param param = newN9Param(json);
            n9(conn, param);
            return param;
        }

        public PkgVuce.N9Param n9(Connection conn) {
            PkgVuce.N9Param param = newN9Param();
            n9(conn, param);
            return param;
        }

        public void n9(Connection conn, PkgVuce.N9Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_N9";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.Serv1Param serv1(Connection conn, Dictionary<string, string> map) {
            PkgVuce.Serv1Param param = newServ1Param(map);
            serv1(conn, param);
            return param;
        }

        public PkgVuce.Serv1Param serv1(Connection conn, JSONObject json) {
            PkgVuce.Serv1Param param = newServ1Param(json);
            serv1(conn, param);
            return param;
        }

        public PkgVuce.Serv1Param serv1(Connection conn) {
            PkgVuce.Serv1Param param = newServ1Param();
            serv1(conn, param);
            return param;
        }

        public void serv1(Connection conn, PkgVuce.Serv1Param param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].VUC_SERV1";
            DbParameter par = null;
            // idsolicitud
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idsolicitud";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idsolicitud == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idsolicitud;
            // idversion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idversion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idversion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idversion;
            // idnotificacion
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idnotificacion";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idnotificacion == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idnotificacion;
            // idactividad
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idactividad";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 20;
            if (string.IsNullOrEmpty(param.Idactividad))
                par.Value = DBNull.Value;
            else
                par.Value = param.Idactividad;
            cmd.ExecuteNonQuery();
        }

        public PkgVuce.GetlistnotifParam newGetlistnotifParam() {
            return new GetlistnotifParam();
        }

        public PkgVuce.GetlistnotifParam newGetlistnotifParam(Dictionary<string, string> map) {
            return new GetlistnotifParam(map);
        }

        public PkgVuce.GetlistnotifParam newGetlistnotifParam(JSONObject json) {
            return new GetlistnotifParam(json);
        }

        public PkgVuce.N11Param newN11Param() {
            return new N11Param();
        }

        public PkgVuce.N11Param newN11Param(Dictionary<string, string> map) {
            return new N11Param(map);
        }

        public PkgVuce.N11Param newN11Param(JSONObject json) {
            return new N11Param(json);
        }

        public PkgVuce.N11CrearParam newN11CrearParam() {
            return new N11CrearParam();
        }

        public PkgVuce.N11CrearParam newN11CrearParam(Dictionary<string, string> map) {
            return new N11CrearParam(map);
        }

        public PkgVuce.N11CrearParam newN11CrearParam(JSONObject json) {
            return new N11CrearParam(json);
        }

        public PkgVuce.N15Param newN15Param() {
            return new N15Param();
        }

        public PkgVuce.N15Param newN15Param(Dictionary<string, string> map) {
            return new N15Param(map);
        }

        public PkgVuce.N15Param newN15Param(JSONObject json) {
            return new N15Param(json);
        }

        public PkgVuce.N17Param newN17Param() {
            return new N17Param();
        }

        public PkgVuce.N17Param newN17Param(Dictionary<string, string> map) {
            return new N17Param(map);
        }

        public PkgVuce.N17Param newN17Param(JSONObject json) {
            return new N17Param(json);
        }

        public PkgVuce.N17GetParam newN17GetParam() {
            return new N17GetParam();
        }

        public PkgVuce.N17GetParam newN17GetParam(Dictionary<string, string> map) {
            return new N17GetParam(map);
        }

        public PkgVuce.N17GetParam newN17GetParam(JSONObject json) {
            return new N17GetParam(json);
        }

        public PkgVuce.N17N66Param newN17N66Param() {
            return new N17N66Param();
        }

        public PkgVuce.N17N66Param newN17N66Param(Dictionary<string, string> map) {
            return new N17N66Param(map);
        }

        public PkgVuce.N17N66Param newN17N66Param(JSONObject json) {
            return new N17N66Param(json);
        }

        public PkgVuce.N19Param newN19Param() {
            return new N19Param();
        }

        public PkgVuce.N19Param newN19Param(Dictionary<string, string> map) {
            return new N19Param(map);
        }

        public PkgVuce.N19Param newN19Param(JSONObject json) {
            return new N19Param(json);
        }

        public PkgVuce.N2Param newN2Param() {
            return new N2Param();
        }

        public PkgVuce.N2Param newN2Param(Dictionary<string, string> map) {
            return new N2Param(map);
        }

        public PkgVuce.N2Param newN2Param(JSONObject json) {
            return new N2Param(json);
        }

        public PkgVuce.N2TarifaParam newN2TarifaParam() {
            return new N2TarifaParam();
        }

        public PkgVuce.N2TarifaParam newN2TarifaParam(Dictionary<string, string> map) {
            return new N2TarifaParam(map);
        }

        public PkgVuce.N2TarifaParam newN2TarifaParam(JSONObject json) {
            return new N2TarifaParam(json);
        }

        public PkgVuce.N21Param newN21Param() {
            return new N21Param();
        }

        public PkgVuce.N21Param newN21Param(Dictionary<string, string> map) {
            return new N21Param(map);
        }

        public PkgVuce.N21Param newN21Param(JSONObject json) {
            return new N21Param(json);
        }

        public PkgVuce.N22Param newN22Param() {
            return new N22Param();
        }

        public PkgVuce.N22Param newN22Param(Dictionary<string, string> map) {
            return new N22Param(map);
        }

        public PkgVuce.N22Param newN22Param(JSONObject json) {
            return new N22Param(json);
        }

        public PkgVuce.N36Param newN36Param() {
            return new N36Param();
        }

        public PkgVuce.N36Param newN36Param(Dictionary<string, string> map) {
            return new N36Param(map);
        }

        public PkgVuce.N36Param newN36Param(JSONObject json) {
            return new N36Param(json);
        }

        public PkgVuce.N39Param newN39Param() {
            return new N39Param();
        }

        public PkgVuce.N39Param newN39Param(Dictionary<string, string> map) {
            return new N39Param(map);
        }

        public PkgVuce.N39Param newN39Param(JSONObject json) {
            return new N39Param(json);
        }

        public PkgVuce.N48Param newN48Param() {
            return new N48Param();
        }

        public PkgVuce.N48Param newN48Param(Dictionary<string, string> map) {
            return new N48Param(map);
        }

        public PkgVuce.N48Param newN48Param(JSONObject json) {
            return new N48Param(json);
        }

        public PkgVuce.N49Param newN49Param() {
            return new N49Param();
        }

        public PkgVuce.N49Param newN49Param(Dictionary<string, string> map) {
            return new N49Param(map);
        }

        public PkgVuce.N49Param newN49Param(JSONObject json) {
            return new N49Param(json);
        }

        public PkgVuce.N57Param newN57Param() {
            return new N57Param();
        }

        public PkgVuce.N57Param newN57Param(Dictionary<string, string> map) {
            return new N57Param(map);
        }

        public PkgVuce.N57Param newN57Param(JSONObject json) {
            return new N57Param(json);
        }

        public PkgVuce.N57N7Param newN57N7Param() {
            return new N57N7Param();
        }

        public PkgVuce.N57N7Param newN57N7Param(Dictionary<string, string> map) {
            return new N57N7Param(map);
        }

        public PkgVuce.N57N7Param newN57N7Param(JSONObject json) {
            return new N57N7Param(json);
        }

        public PkgVuce.N66Param newN66Param() {
            return new N66Param();
        }

        public PkgVuce.N66Param newN66Param(Dictionary<string, string> map) {
            return new N66Param(map);
        }

        public PkgVuce.N66Param newN66Param(JSONObject json) {
            return new N66Param(json);
        }

        public PkgVuce.N7DevolverParam newN7DevolverParam() {
            return new N7DevolverParam();
        }

        public PkgVuce.N7DevolverParam newN7DevolverParam(Dictionary<string, string> map) {
            return new N7DevolverParam(map);
        }

        public PkgVuce.N7DevolverParam newN7DevolverParam(JSONObject json) {
            return new N7DevolverParam(json);
        }

        public PkgVuce.N7ElabDrParam newN7ElabDrParam() {
            return new N7ElabDrParam();
        }

        public PkgVuce.N7ElabDrParam newN7ElabDrParam(Dictionary<string, string> map) {
            return new N7ElabDrParam(map);
        }

        public PkgVuce.N7ElabDrParam newN7ElabDrParam(JSONObject json) {
            return new N7ElabDrParam(json);
        }

        public PkgVuce.N8Param newN8Param() {
            return new N8Param();
        }

        public PkgVuce.N8Param newN8Param(Dictionary<string, string> map) {
            return new N8Param(map);
        }

        public PkgVuce.N8Param newN8Param(JSONObject json) {
            return new N8Param(json);
        }

        public PkgVuce.N9Param newN9Param() {
            return new N9Param();
        }

        public PkgVuce.N9Param newN9Param(Dictionary<string, string> map) {
            return new N9Param(map);
        }

        public PkgVuce.N9Param newN9Param(JSONObject json) {
            return new N9Param(json);
        }

        public PkgVuce.Serv1Param newServ1Param() {
            return new Serv1Param();
        }

        public PkgVuce.Serv1Param newServ1Param(Dictionary<string, string> map) {
            return new Serv1Param(map);
        }

        public PkgVuce.Serv1Param newServ1Param(JSONObject json) {
            return new Serv1Param(json);
        }

        public class GetlistnotifParam {

            private int? iduser;
            private string numeorden;
            private string numesuce;
            private string numeexpediente;
            private string estado;
            private string evaluador;
            private DateTime? fechaini;
            private DateTime? fechafin;
            private int? page;
            private int? limit;
            private DbDataReader curOut;
            private int? totalrows;

            public GetlistnotifParam() {
            }

            public GetlistnotifParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public GetlistnotifParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public string Numeorden {
                get { return numeorden; }
                set { this.numeorden = value; }
            }

            public string Numesuce {
                get { return numesuce; }
                set { this.numesuce = value; }
            }

            public string Numeexpediente {
                get { return numeexpediente; }
                set { this.numeexpediente = value; }
            }

            public string Estado {
                get { return estado; }
                set { this.estado = value; }
            }

            public string Evaluador {
                get { return evaluador; }
                set { this.evaluador = value; }
            }

            public DateTime? Fechaini {
                get { return fechaini; }
                set { this.fechaini = value; }
            }

            public DateTime? Fechafin {
                get { return fechafin; }
                set { this.fechafin = value; }
            }

            public int? Page {
                get { return page; }
                set { this.page = value; }
            }

            public int? Limit {
                get { return limit; }
                set { this.limit = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public int? Totalrows {
                get { return totalrows; }
                set { this.totalrows = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N11Param {

            private int? idsubsanacion;
            private string descsubsanacion;
            private int? idnotificacion;

            public N11Param() {
            }

            public N11Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N11Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsubsanacion {
                get { return idsubsanacion; }
                set { this.idsubsanacion = value; }
            }

            public string Descsubsanacion {
                get { return descsubsanacion; }
                set { this.descsubsanacion = value; }
            }

            public int? Idnotificacion {
                get { return idnotificacion; }
                set { this.idnotificacion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N11CrearParam {

            private int? idsubsanacion;

            public N11CrearParam() {
            }

            public N11CrearParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N11CrearParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsubsanacion {
                get { return idsubsanacion; }
                set { this.idsubsanacion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N15Param {

            private int? idsolicitud;
            private int? idversion;
            private string texto;
            private string errores;

            public N15Param() {
            }

            public N15Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N15Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public string Texto {
                get { return texto; }
                set { this.texto = value; }
            }

            public string Errores {
                get { return errores; }
                set { this.errores = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N17Param {

            private int? idsolicitud;
            private int? idversion;
            private int? idsubsanacion;
            private decimal? tasa;
            private int? plazo;
            private string texto;
            private string errores;

            public N17Param() {
            }

            public N17Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N17Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Idsubsanacion {
                get { return idsubsanacion; }
                set { this.idsubsanacion = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public int? Plazo {
                get { return plazo; }
                set { this.plazo = value; }
            }

            public string Texto {
                get { return texto; }
                set { this.texto = value; }
            }

            public string Errores {
                get { return errores; }
                set { this.errores = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N17GetParam {

            private int? idsolicitud;
            private int? idversion;
            private int? idsubsanacion;

            public N17GetParam() {
            }

            public N17GetParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N17GetParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Idsubsanacion {
                get { return idsubsanacion; }
                set { this.idsubsanacion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N17N66Param {

            private int? idsubsanacion;

            public N17N66Param() {
            }

            public N17N66Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N17N66Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsubsanacion {
                get { return idsubsanacion; }
                set { this.idsubsanacion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N19Param {

            private int? idsolicitud;
            private int? idversion;
            private string texto;
            private string errores;
            private string numorden;

            public N19Param() {
            }

            public N19Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N19Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public string Texto {
                get { return texto; }
                set { this.texto = value; }
            }

            public string Errores {
                get { return errores; }
                set { this.errores = value; }
            }

            public string Numorden
            {
                get { return numorden; }
                set { numorden = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N2Param {

            private int? idsolicitud;
            private int? idversion;
            private decimal? tasa;

            public N2Param() {
            }

            public N2Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N2Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N2TarifaParam {

            private int? idsolicitud;
            private int? idversion;
            private decimal? tasa;

            public N2TarifaParam() {
            }

            public N2TarifaParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N2TarifaParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N21Param {

            private int? idsolicitud;
            private int? idversion;
            private int? dias;
            private decimal? tasa;

            public N21Param() {
            }

            public N21Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N21Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Dias {
                get { return dias; }
                set { this.dias = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N22Param {

            private int? idsolicitud;
            private int? idversion;
            private decimal? tasa;
            private string docnumero;


            public N22Param() {
            }

            public N22Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N22Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public string Docnumero
            {
                get { return docnumero; }
                set { docnumero = value; }
            }


            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N36Param {

            private int? idtraza;
            private int? idsolicitud;
            private int? idversion;
            private string area;
            private string subarea;
            private string responsable;
            private DateTime? fechaingreso;
            private DateTime? fechasalida;
            private string mensaje;

            public N36Param() {
            }

            public N36Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N36Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idtraza {
                get { return idtraza; }
                set { this.idtraza = value; }
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public string Area {
                get { return area; }
                set { this.area = value; }
            }

            public string Subarea {
                get { return subarea; }
                set { this.subarea = value; }
            }

            public string Responsable {
                get { return responsable; }
                set { this.responsable = value; }
            }

            public DateTime? Fechaingreso {
                get { return fechaingreso; }
                set { this.fechaingreso = value; }
            }

            public DateTime? Fechasalida {
                get { return fechasalida; }
                set { this.fechasalida = value; }
            }

            public string Mensaje {
                get { return mensaje; }
                set { this.mensaje = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N39Param {

            private int? iddr;

            public N39Param() {
            }

            public N39Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N39Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iddr {
                get { return iddr; }
                set { this.iddr = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N48Param {

            private int? idsolicitud;
            private int? idversion;

            public N48Param() {
            }

            public N48Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N48Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N49Param {

            private int? idsolicitud;
            private int? idversion;

            public N49Param() {
            }

            public N49Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N49Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N57Param {

            private int? idsolicitud;
            private int? idflujo;
            private int? idversion;
            private int? iduserevaluador;
            private string generarn57;
            private string docnumero;
            private string numexpediente;

            public N57Param() {
            }

            public N57Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N57Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idflujo {
                get { return idflujo; }
                set { this.idflujo = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Iduserevaluador {
                get { return iduserevaluador; }
                set { this.iduserevaluador = value; }
            }

            public string Generarn57 {
                get { return generarn57; }
                set { this.generarn57 = value; }
            }

            public string Docnumero {
                get { return docnumero; }
                set { this.docnumero = value; }
            }

            public string Numexpediente {
                get { return numexpediente; }
                set { this.numexpediente = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N57N7Param {

            private int? idsolicitud;
            private int? idflujo;
            private int? idversion;
            private int? iduserevaluador;
            private string docnumero;
            private string numexpediente;

            public N57N7Param() {
            }

            public N57N7Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N57N7Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idflujo {
                get { return idflujo; }
                set { this.idflujo = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Iduserevaluador {
                get { return iduserevaluador; }
                set { this.iduserevaluador = value; }
            }

            public string Docnumero {
                get { return docnumero; }
                set { this.docnumero = value; }
            }

            public string Numexpediente {
                get { return numexpediente; }
                set { this.numexpediente = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N66Param {

            private int? idsolicitud;
            private int? idversion;
            private decimal? tasa;
            private string motivo;

            public N66Param() {
            }

            public N66Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N66Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public decimal? Tasa {
                get { return tasa; }
                set { this.tasa = value; }
            }

            public string Motivo {
                get { return motivo; }
                set { this.motivo = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N7DevolverParam {

            private int? idsolicitud;
            private int? idflujo;
            private int? idversion;
            private string idactividad;

            public N7DevolverParam() {
            }

            public N7DevolverParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N7DevolverParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idflujo {
                get { return idflujo; }
                set { this.idflujo = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public string Idactividad {
                get { return idactividad; }
                set { this.idactividad = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N7ElabDrParam {

            private int? idsolicitud;
            private int? idflujo;
            private int? idversion;
            private int? iduserevaluador;

            public N7ElabDrParam() {
            }

            public N7ElabDrParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N7ElabDrParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idflujo {
                get { return idflujo; }
                set { this.idflujo = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Iduserevaluador {
                get { return iduserevaluador; }
                set { this.iduserevaluador = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N8Param {

            private int? idsolicitud;
            private int? idversion;

            public N8Param() {
            }

            public N8Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N8Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class N9Param {

            private int? idsolicitud;
            private int? idversion;

            public N9Param() {
            }

            public N9Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public N9Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class Serv1Param {

            private int? idsolicitud;
            private int? idversion;
            private int? idnotificacion;
            private string idactividad;

            public Serv1Param() {
            }

            public Serv1Param(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public Serv1Param(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idsolicitud {
                get { return idsolicitud; }
                set { this.idsolicitud = value; }
            }

            public int? Idversion {
                get { return idversion; }
                set { this.idversion = value; }
            }

            public int? Idnotificacion {
                get { return idnotificacion; }
                set { this.idnotificacion = value; }
            }

            public string Idactividad {
                get { return idactividad; }
                set { this.idactividad = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

    }
}
